#ifndef SERVICE_H
#define SERVICE_H

#include <QByteArray>
#include <QString>

#define posInFile QString(__FILE__)+": "+QString::number(__LINE__)

class Service
{
public:
    Service();
    static double round( double value, int digits );

    static void printCheque(int chequeID);

private:
    static QByteArray centerChequeText(const QString &text);
    static QByteArray rightChequeText(const QString &text, int already=0);
    static QByteArray columnsChequeText(const QString &text_left, const QString &text_right);
    static QByteArray leftChequeText(const QString &text);

};

#endif // SERVICE_H
